package no.sachmuld.methodcombination.examples.annotation.designbycontract.stack;

import no.sachmuld.aspectjattach.AspectJAgent;

/**
 *
 */
public class Main implements Runnable {

    @Override
    public void run() {

        Main.class.getClassLoader().setDefaultAssertionStatus(true);
        AspectJAgent.initializeIfNeeded();

        new Runnable() {

            @Override
            public void run() {


                Stack<String> stack = new Stack<>();
                stack.push("foo");
                System.out.println(stack.top());
                System.out.println(stack.size());
                System.out.println(stack.empty());
                System.out.println(stack.pop());
                System.out.println(stack.size());
                System.out.println(stack.empty());

            }

        }.run();

    }

    public static void main(String... args) {

        new Main().run();

    }
}
